<?php
class Exts_Services_Facebook_Graph {

	const GRAPH_URL = 'http://graph.facebook.com/?id=';
	public function __construct(){


	}

	/**
	 *
	 * @param <type> $url
	 * @return <type>
	 */
	public function getPageInfo( $url ) {

		try{
			$response = file_get_contents( self::GRAPH_URL . $url );

			$results = Zend_Json::decode($response);
			return $results;
		}catch( Exception $e ) {
			echo $e->getMessage().'<br/>';
			return array();
		}
	}
}